<?php

header('Content-type: text/plain');

$host_ip = gethostbyname('exploitingit.co.uk');

$host = 'exploitingit.co.uk';


$sp = fsockopen('62.193.228.169', 80, $errno, $errstr, 30);

$req = "HEAD http://62.193.228.169:80/pma2009/ HTTP/1.0\r\n";
// $req = "HEAD http://62.193.228.169:80/phpMyAdmin-2.8.0.2/ HTTP/1.0\r\n";
// $req = "GET http://62.193.254.158:80/phpMyAdmin-2.8.1-rc1/ HTTP/1.0\r\n";
// $req = "HEAD http://62.193.254.158:80/phpMyAdmin-2.8.1-rc1/ HTTP/1.0\r\n";

if (!$sp) {
    echo "$errstr ($errno)<br />\n";
} else {
    stream_set_blocking($sp, 1);
    fputs($sp, $req);
    fputs($sp, "Host: 62.193.228.169:80\r\n");
//     fputs($sp, "Content-type: application/x-www-form-urlencoded\r\n");
//     fputs($sp, "Content-length: ".strlen($str)."\r\n");
    fputs($sp, "Connection: close\r\n\r\n");
//     fputs($sp, $str."\r\n\r\n");
    $e = '';
    while(!feof($sp)) $e .= fgets($sp);
    fclose($sp);
}

print $e;

print "\r\n";

print "ended: ".time();